<template>
<div id="components">
    <iframe :src='src' frameborder="0" width="100%" height="100%"></iframe>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
    data () {
        return {
            src: ''
        }
    },
    computed: {
        ...mapGetters(['userInfo'])
    },
    created () {
        const jwt = this.userInfo.as_jwt
        const areaID = this.userInfo.as_diquId
        this.src = `https://gems.rxjy.com/VueConProject/Construction/login?jwt=${jwt}&cutting=1&areaID=${areaID}&role=2`
    }
}
</script>
